The old default of 148px doesn't work everywhere. Instead, pick a
default value of -1 and measure() the sidebar widget in the
filechooserwidget in that case. Other values >= 0 are still handled as
before.
*/
update_time_renderer_visible (impl);
+ if (sidebar_width < 0)
+ {
+ GtkWidget *sidebar = gtk_paned_get_child1 (GTK_PANED (priv->browse_widgets_hpaned));
+
+ gtk_widget_measure (sidebar, GTK_ORIENTATION_HORIZONTAL, -1,
+ NULL, &sidebar_width, NULL, NULL);
+ }
+
gtk_paned_set_position (GTK_PANED (priv->browse_widgets_hpaned), sidebar_width);
}
</description>
</key>
<key name='sidebar-width' type='i'>
- <default>148</default>
+ <default>-1</default>
<summary>Sidebar width</summary>
<description>
Width in pixels of the file chooser's places sidebar.